<%@page import="bean.Admin"%>
<%@page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加发布用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../css/layui.css" media="all">
</head>
<body>

<fieldset class="layui-elem-field layui-field-title"
          style="margin-top: 20px;">
    <legend>添加用户</legend>
</fieldset>
<%
    Admin admin = (Admin) session.getAttribute("admin");
    String currentPage1 = request.getParameter("currentPage");
    int currentPage=1;
    if(currentPage1!=null){
        currentPage= Integer.parseInt(request.getParameter("currentPage"));
    }

%>
<form
        action="/News/Insert"
        method="post" name="publish" enctype="multipart/form-data">
    <div class="layui-form-item">
        <label class="layui-form-label">账户</label>
        <div class="layui-input-block">
            <input type="text" name="AdminAccont" lay-verify="title"
                   autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
            <input type="text" name="AdminPassword" lay-verify="title"
                   autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">名字</label>
        <div class="layui-input-block">
            <input type="text" name="AdminName" lay-verify="title"
                   autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <select name="AdminSex">
                <option value='男'>男</option>
                <option value='女'>女</option>
            </select>
        </div>
    </div>

    <div class="layui-btn-container">
        <div class="layui-input-block">
            <input type="submit" class="layui-btn layui-btn-radius" value="添加"></input>
            <input type="reset" class="layui-btn layui-btn-radius" value="重置"></input>
            <a href="usersList.jsp?currentPage=<%=currentPage%>"><input
                    type="button" class="layui-btn layui-btn-radius" value="返回"></input></a>
        </div>
    </div>

</form>


</body>
</html>
